Next: File Archives, Previous: Misc File Ops, Up: Files [Contents][Index]
Emacs automatically uncompresses compressed files when you
visit them, and automatically recompresses them if you alter them
and save them. Emacs recognizes compressed files by their file
names. File names ending in ‘.gz’
indicate a file compressed with gzip. Other endings
indicate other compression programs.
Automatic uncompression and compression apply to all the operations in which Emacs uses the contents of a file. This includes visiting it, saving it, inserting its contents into a buffer, loading it, and byte compiling it.
To disable this feature, type the command M-x
auto-compression-mode. You can disable it permanently by
customizing the variable auto-compression-mode.